package cn.tedu.spring.homework.eg33;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Justin Parker
 * @author 2024/8/2 下午11:22
 * @version 1.0
 */
public class TextClass {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.homework.eg33");
        Class class1 = context.getBean( Class.class);
        System.out.println(class1);
        Class class2 = context.getBean( Class.class);
        System.out.println(class2);
    }
}
